<?php
declare(staict_types=1);

namespace app\admin\validate;

use think\Validate;

/**
 * 官方消息验证器
 * Class OfficialMessage
 * @package app\admin\validate
 */
class OfficialMessage extends Validate
{
    // 定义验证规则
    protected $rule = [
        'desc|消息简介' => 'require',
    ];

    protected $message = [
        'desc.require' => '请输入消息简介',
    ];
}
